4.1 The Operating System Boot Process
Traditional BIOS-Based Boot Process
The boot sequence of a legacy operating system utilizing a basic input/output system (BIOS) can be broadly divided into the following sequential stages:
-
Power-On: Power is supplied to the system components.
-
Power-On Self-Test (POST): Low-level routines hardcoded within the system's non-volatile ROM execute diagnostic hardware self-tests.
-
Master Boot Record (MBR) Execution: The system reads and executes the primary stage-1 bootloader code from the Master Boot Record sector of the designated boot device.
-
Stage-2 Loading: The stage-1 bootloader identifies the active boot partition, loads the secondary stage-2 bootloader code from that partition into random-access memory (RAM), and hands over execution.
-
Operating System Bootloader Discovery: The stage-2 bootloader determines the explicit path of the definitive operating system bootloader within the active file system structure and loads it into memory.
-
Kernel Initialization: The final operating system bootloader—commonly referred to simply as the bootloader—imports the operating system kernel image into RAM and relinquishes system control to the kernel itself, concluding the boot sequence.
Modern UEFI-Based Boot Process
Modern desktop and server firmware implementations follow the Unified Extensible Firmware Interface (UEFI) standard. Booting a UEFI-compliant operating system requires that the underlying hardware platform's firmware adheres strictly to the UEFI specification. This boot lifecycle is structured into the following operational phases:
-
Power-On: Power is supplied to the platform circuitry.
-
Security Phase (SEC): Initial security enforcement configurations and pre-RAM health checks are executed.
-
Pre-EFI Initialization (PEI) & Driver Execution Environment (DXE): System firmware initializes foundational hardware, and the system executes platform device drivers.
-
Boot Device Selection (BDS): The firmware evaluates configuration rules to choose the target boot device.
-
EFI System Partition Discovery: The firmware reads the /boot/efi directory tree on the selected storage device to locate the operating system's bootloader or boot manager.
(Note: To support UEFI-compliant booting, the target drive—regardless of whether it utilizes a GUID Partition Table (GPT) or legacy MBR layout—must contain a dedicated EFI System Partition (ESP) formatted to hold operating system boot binaries and configuration profiles). -
Boot Manager Invocations: The system launches the boot manager retrieved in the previous step, which orchestrates the final launch of the operating system kernel.
The first five steps are handled completely by the platform's non-volatile system firmware. The low-level partition architecture of the boot device itself is simplified under this paradigm; it no longer relies on complex stage-1 and stage-2 sector splitting, requiring only that the appropriate operating system bootloader application binary be populated within the standard /boot/efi target directory path.